Gem::Specification.new do |s|
  s.name    = "curb"
  s.authors = ["Ross Bamford", "Todd A. Fisher"]
  s.version = '<%= CURRENT_VERSION %>'
  s.date    = '<%= Time.now.strftime("%Y-%m-%d") %>'
  s.description = %q{Curb (probably CUrl-RuBy or something) provides Ruby-language bindings for the libcurl(3), a fully-featured client-side URL transfer library. cURL and libcurl live at http://curl.haxx.se/}
  s.email   = 'todd.fisher@gmail.com'
  s.extra_rdoc_files = ['LICENSE', 'README.md']
  <%
    files = %w(LICENSE README.md Rakefile doc.rb ext/extconf.rb) +
      Dir["lib/**/**.rb"] +
      Dir["ext/**/**.c"] +
      Dir["ext/**/**.h"].
      reject{|h| h == 'ext/curb_config.h' }

    if ENV['BINARY_PACKAGE']
      files += Dir['ext/**/*.{o,so,bundle}']
    end
  %>
  s.files = <%= files.inspect %>

  #### Load-time details
  s.require_paths = ['lib','ext']
  s.summary = %q{Ruby libcurl bindings}
  s.test_files = <%= Dir['tests/**/**.rb'].inspect %>
  <% unless ENV['BINARY_PACKAGE'] %>
  s.extensions << 'ext/extconf.rb'
  <% end %>

  #### Documentation and testing.
  s.homepage = 'https://github.com/taf2/curb'
  s.rdoc_options = ['--main', 'README.md']

  s.metadata = {
    'changelog_uri' => 'https://github.com/taf2/curb/blob/master/ChangeLog.md'
  }

  <% if ENV['BINARY_PACKAGE'] %>
  s.platform = Gem::Platform::CURRENT
  <% else %>
  s.platform = Gem::Platform::RUBY
  <% end %>
  s.licenses = ['Ruby']
end
